from Driver.Driver import MDriver
from part import PostDetailsFace
from part import BarFace
from part import ForumFace
class test9:
    Detail=''
    def __init__(self):
        self.Detail=PostDetailsFace.PostDetail()
    # 进入主页
    def Home(self):
        BarFace.BarFace().Come()
    # 检测帖子界面
    # 别人的帖子界面
    def PostDetailOther(self,select):

        BarFace.BarFace().BarHome()
        ForumFace.Froum().ForumOpenPost(select)
        self.Detail.PostDetailFaceSame()
        self.Detail.PostDetailFaceOther()
        MDriver.photo()
    # 自己的帖子界面
    def PostDetailMy(self,select):
        BarFace.BarFace().BarHome()
        ForumFace.Froum().ForumOpenPost(select)
        self.Detail.PostDetailFaceSame()
        MDriver.photo()
    # 给文章点赞
    def PostDetailLike(self):
        self.Detail.PostDetailLike()
    # 给别人发私信
    def PostDetailSendWord(self,name):
        self.Detail.PostDetailSendToAuthor(name)
        MDriver.photo()
    # 发布评论
    def PostDetailSendComment(self,name):
        self.Detail.PostDetailSendComment(name)
        MDriver.photo()
